<?php
defined('IN_DESTOON') or exit('Access Denied');
include tpl('header');
show_menu($menus);
?>

<div class="tt">管理</div>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
  <th width="50">id</th>
<th>用户名</th>
<th>上传时间</th>
<th>审核人</th>
<th>审核时间</th>
<th>审核状态</th>
<th>操作</th>
</tr>
<?php foreach($lists as $k=>$v) { ?>
<tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
  <td><?php echo $v['id'];?></td>
  <td><?php echo $v['username'];?></td>
  <td><?php echo date('Y-m-d H:i:s',$v['time']);?></td>
  <td><?php echo $v['ausername'];?></td>
  <td><?php if($v['atime'])echo date('Y-m-d H:i:s',$v['atime']);?></td>
  <td><?php echo $_status[$v['status']]?></td>
  <td><a href="?file=<?=$file?>&action=edit&id=<?php echo $v['id'];?>">审核</a> <a href="<?php echo $v['thumb'];?>">下载</a>  <a onclick="if(confirm('确定要删除选中单页吗？此操作将不可撤销')){ href='?file=<?=$file?>&action=delete&id=<?php echo $v['id'];?>'}" href="###">删除</a></td>
</tr>
<?php } ?>
<div class="pages"><?php echo $pages;?></div>
</table>
<?php include tpl('footer');?>